package ipt.capitulo21;
import java.applet.*;
import java.awt.*;
import javax.swing.*;
public class PrimerApplet extends JApplet{
	String texto;
	int x, y;
	public void init(){
		texto = getParameter("texto");
		try{
			x= Integer.parseInt(getParameter("x"));
			y= Integer.parseInt(getParameter("y"));
		}catch(NumberFormatException ex){}
	}
	public void paint(Graphics g){
		g.setFont(new Font("TimesRoman",
						Font.BOLD+Font.ITALIC,24));
		g.drawString(texto,x,y);
	}
}
